package com.winai.launcher.bean;

import com.winai.launcher.utils.MathUtils;

public class WeatherBean {
    private String cond_code;//气象图标代码 利用WeatherIconUtil调用
    private String day;//星期几
    private String date;//几月几号
    private int max;//最高温度
    private int min;//最低温第
    private int avg;//平均温度

    public WeatherBean(String cond_code, String day, String date, int max, int min) {
        this.cond_code = cond_code;
        this.day = day;
        this.date = date;
        this.max = max;
        this.min = min;
        this.avg = (int) MathUtils.roundHalfUp(MathUtils.divide(max + min, 2, 0) + "", 0);
    }

    public String getCond_code() {
        return cond_code;
    }

    public void setCond_code(String cond_code) {
        this.cond_code = cond_code;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getAvg() {
        return avg;
    }
}
